package com.ghca.myinfo.system.services;

import com.ghca.myinfo.system.entities.Permission;
import com.ghca.myinfo.system.entities.Role;

import java.util.List;
import java.util.Set;

/**
 * Created by Administrator on 2017/1/24.
 */
public interface PermissionService {

    List<Permission> findRootPermission(Set<Role> roles);

    List<Permission> findByParent(Set<Role> roles, String parentId);
}
